/*
 * @Description: 
 * @Date: 2023-12-26 16:34:53
 * @LastEditTime: 2024-01-10 16:21:24
 */
import request from '@/utils/request'

//新增代表团
export function addDelegation(data) {
    return request({
        url: '/system/delegation',
        method: 'post',
        data: data
    })
}

//新增代表团
export function addDelegationList(data) {
    return request({
        url: '/system/delegation/list',
        method: 'get',
        params: data
    })
}
//修改代表团
export function updateDelegationList(data) {
    return request({
        url: '/system/delegation',
        method: 'put',
        data: data
    })
}

//代表团详情
export function getDelegationItem(deId) {
    return request({
        url: `/system/delegation/${deId}`,
        method: 'get',
    })
}
//删除代表团

export function deleteDelegation(deId) {
    return request({
        url: `/system/delegation/${deId}`,
        method: 'delete',
    })
}

///system/db_user/list/groupByDe


export function groupByDe(data) {
    return request({
        url: `/system/db_user/list/groupByDe`,
        method: 'get',
        params: data
    })
}